<!DOCTYPE html>

<html>
<head>
    <title>Page Title</title>
    <script type="text/javascript" src="js/ivank.js"></script>
    <script type="text/javascript" src="js/t.js"></script>
    <script type="text/javascript" src="js/bf.js"></script>
    <script type="text/javascript">
	var m, stage;
        var balls = [] ;// balls
        var dirs = [] ; // directions
        var stage;
        var frameIndex = 0;
        var fps = 60;
        var time = new Date().getTime();
        
        
        function webGLStart() {
            //code
            stage = new Stage("c");
	    m = new BFMain(stage.stageWidth, stage.stageHeight);
	    stage.addEventListener(Event.RESIZE, resizeGame);
	    //var bg = new Bitmap(new BitmapData("blue_bg.jpg"));
	    //bg.scaleX = stage.stageWidth/ 1024;
	    //bg.scaleY = stage.stageHeight/ 512;
	    //stage.addChild(bg);
	    
	    stage.addChild(m);
	    m.resize(stage.stageWidth, stage.stageHeight);
        }
	
        function resizeGame(e)	{
	    m.resize(stage.stageWidth, stage.stageHeight);
        }	
        
    </script>
</head>

<body onload="webGLStart();"><canvas id="c"></canvas>



</body>
</html>
